package com.codes.service.impl;

import com.codes.dao.InformationMapper;
import com.codes.model.Information;
import com.codes.service.InformationSV;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Date 2020/6/10 10:07
 * @Created by peanut
 */
@Service
public class InformationImpl implements InformationSV {

    @Autowired
    private InformationMapper informationMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return informationMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Information record) {
        return 0;
    }

    @Override
    public int insertSelective(Map record) {
        return informationMapper.insertSelective(record);
    }

    @Override
    public Information selectByPrimaryKey(Integer id) {
        return null;
    }

    @Override
    public int updateByPrimaryKeySelective(Map record) {
        return informationMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Information record) {
        return 0;
    }

    @Override
    public List<Map<String, Object>> getList(Map map) {
        return informationMapper.getList(map);
    }
}